package designPattern.singletonPattern;

/**
 * Singleton
 *
 * @author nanxin.chen
 * @date 2015/11/3
 */
public class Singleton {
    private static Singleton singleton = new Singleton();

    private Singleton() {
        System.out.println("create a singleton instance.");
    }

    public static Singleton getInstance() {
        return singleton;
    }
}
